package com.ydj.app.entity.query;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ydj.app.entity.ForecastQuestion;
import com.ydj.app.enumerate.ForecastQuestionCateEnum;
import com.ydj.framework.mysql.BaseQuery;

import java.util.List;

public class ForecastQuestionQuery extends BaseQuery<ForecastQuestion> {
    public ForecastQuestionQuery(IService<ForecastQuestion> service) {
        super(service);
    }

    public ForecastQuestionQuery id(Long value) {
        eq(ForecastQuestion::getId, value);
        return this;
    }

    public ForecastQuestionQuery ids(List<Long> value) {
        in(ForecastQuestion::getId, value);
        return this;
    }

    public ForecastQuestionQuery cate(ForecastQuestionCateEnum value) {
        eq(ForecastQuestion::getCate, value);
        return this;
    }
}